package com.sumainfor.wx.system.feign;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.system.fallback.FeignTenantFallback;
import com.sumainfor.wx.system.fallback.FeignZuulFallback;
import com.sumainfor.wx.system.feign.TenantFeign.TenantFeign;
import com.sumainfor.wx.system.feign.ZuulFeign.ZuulFeign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2019/1/18 15:59
 * @Description:
 */
@FeignClient(name = "TANGNEST-WX-TENANT", fallback = FeignTenantFallback.class)
public interface BaseFeignTenant extends TenantFeign{


    /**
     * 创建工单的时候去租客太查询该手机号的客户是否已经注册
     * @param params
     * @return
     */
    @GetMapping("/key/ZfeignController/getTctenForTcmkt")
    JsonResult getTctenForTcmkt(@RequestParam(value="params") Map<String,Object> params);



    ////////////////////////////
    //zc定义
    ////////////////////////////

    /**
     * 签约时根据手机号查询微信端的租客信息
     * @author zhoucong
     * @data 2019/9/2
     * @Param
     * @return
     */
    @GetMapping("/ZwxTenant/getTenantByTenPhone")
    JsonResult getTenantByTenPhone(@RequestParam Map<String,Object> params);


    /**
     * 房源筛选
     * @param params
     * @return
     */
    @GetMapping("/housing/findHousingList")
    JsonResult findHousingList(@RequestParam Map<String,Object> params);

    /**
     * 热门搜索
     * @return
     */
    @RequestMapping("/housing/getSearchHot")
    JsonResult getSearchHot(Integer size);

    /**
     * 历史搜索
     * @return
     */
    @RequestMapping("/housing/getHistorySearchList")
    JsonResult getHistorySearchList();


    /**
     * 根据房源详表编号查询房源详情
     * @author zhoucong
     * @data 2019/8/22
     * @Param
     * @return
     */
    @RequestMapping("/housing/getHousingInfoById")
    JsonResult getHousingInfoById(@RequestParam("infoId") String infoId);



    /**
     * 根据房源详表编号和房源编号查询是否是喜爱房源
     * @author zhoucong
     * @data 2019/8/22
     * @Param
     * @return
     */
    @GetMapping("/housing/selectLikeHousing")
    JsonResult selectLikeHousing(@RequestParam Map<String,Object> params);







}
